import pytest
from tools.handle_request import SendRequest
from tools.handle_phone import HandlePhone
from tools.handle_db import mysql
from tools.handle_check_db_data import CheckDb
from tools.handle_replace import HandleReplace
from tools.handle_extract import HandleExtract

@pytest.fixture(scope='class')
def init():
    send_request = SendRequest()
    handle_phone = HandlePhone()
    check_db = CheckDb()
    handle_replace = HandleReplace()
    handle_extract=HandleExtract()
    yield (send_request,handle_phone,check_db,handle_replace,handle_extract)
    mysql.close()